.class public Les/i50;
.super Ljava/lang/Object;
.source "Fat32FileSystem.java"

# interfaces
.implements Les/c50;


# instance fields
.field private a:Les/h50;

.field private b:Les/g50;

.field private c:Les/n50;

.field private d:Les/j50;

.field private e:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Les/a50;Ljava/nio/ByteBuffer;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-nez p3, :cond_0

    const/16 p3, 0x200

    .line 2
    invoke-static {p3}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object p3

    const-wide/16 v0, 0x0

    .line 3
    invoke-interface {p2, v0, v1, p3}, Les/a50;->a(JLjava/nio/ByteBuffer;)V

    .line 4
    :cond_0
    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v0

    invoke-static {v0}, Les/i50;->a([B)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    invoke-static {p3}, Les/h50;->a(Ljava/nio/ByteBuffer;)Les/h50;

    move-result-object p3

    iput-object p3, p0, Les/i50;->a:Les/h50;

    .line 6
    invoke-virtual {p3}, Les/h50;->f()I

    move-result p3

    iget-object v0, p0, Les/i50;->a:Les/h50;

    invoke-virtual {v0}, Les/h50;->b()I

    move-result v0

    mul-int p3, p3, v0

    invoke-static {p2, p3}, Les/n50;->a(Les/a50;I)Les/n50;

    move-result-object p3

    iput-object p3, p0, Les/i50;->c:Les/n50;

    .line 7
    new-instance p3, Les/g50;

    iget-object v0, p0, Les/i50;->a:Les/h50;

    iget-object v1, p0, Les/i50;->c:Les/n50;

    invoke-direct {p3, p2, v0, v1}, Les/g50;-><init>(Les/a50;Les/h50;Les/n50;)V

    iput-object p3, p0, Les/i50;->b:Les/g50;

    .line 8
    iget-object v0, p0, Les/i50;->a:Les/h50;

    invoke-static {p2, p3, v0}, Les/j50;->a(Les/a50;Les/g50;Les/h50;)Les/j50;

    move-result-object p2

    iput-object p2, p0, Les/i50;->d:Les/j50;

    .line 9
    invoke-virtual {p2, p1}, Les/j50;->a(Ljava/lang/String;)V

    .line 10
    iput-object p1, p0, Les/i50;->e:Ljava/lang/String;

    return-void

    .line 11
    :cond_1
    new-instance p1, Lcom/estrongs/fs/impl/usb/UsbFsException;

    sget-object p2, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_TYPE_NOT_SUPPORTED:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    const-string p3, "unsupported partition type"

    invoke-direct {p1, p3, p2}, Lcom/estrongs/fs/impl/usb/UsbFsException;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;)V

    throw p1
.end method

.method public static a([B)Z
    .locals 3

    .line 1
    new-instance v0, Ljava/lang/String;

    const/16 v1, 0x52

    const/4 v2, 0x5

    invoke-direct {v0, p0, v1, v2}, Ljava/lang/String;-><init>([BII)V

    const-string p0, "FAT32"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    return p0
.end method


# virtual methods
.method public a()J
    .locals 4

    .line 2
    iget-object v0, p0, Les/i50;->c:Les/n50;

    invoke-virtual {v0}, Les/n50;->a()J

    move-result-wide v0

    iget-object v2, p0, Les/i50;->a:Les/h50;

    invoke-virtual {v2}, Les/h50;->a()I

    move-result v2

    int-to-long v2, v2

    mul-long v0, v0, v2

    return-wide v0
.end method

.method public b()Les/e50;
    .locals 1

    .line 1
    iget-object v0, p0, Les/i50;->d:Les/j50;

    return-object v0
.end method

.method public c()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/i50;->d:Les/j50;

    invoke-virtual {v0}, Les/j50;->b()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Les/i50;->a:Les/h50;

    invoke-virtual {v0}, Les/h50;->l()Ljava/lang/String;

    move-result-object v0

    :cond_0
    return-object v0
.end method

.method public d()J
    .locals 4

    .line 1
    iget-object v0, p0, Les/i50;->a:Les/h50;

    invoke-virtual {v0}, Les/h50;->j()J

    move-result-wide v0

    iget-object v2, p0, Les/i50;->a:Les/h50;

    invoke-virtual {v2}, Les/h50;->b()I

    move-result v2

    int-to-long v2, v2

    mul-long v0, v0, v2

    return-wide v0
.end method
